
const menuList = [
  {
    name:"system",
    key: '/system',
    icon: 'printer',
    subMenu: [
      {
        key: '/system/organization',
        name: "系统组织",
        icon: 'printer',
        subMenu: [
          {
            key: '/system/organization/user',
            name: "用户管理",
            icon: 'printer',
          },{
              key: '/system/organization/role',
              name: "角色管理",
              icon: 'printer',
          }
      ]}

  ]},{
    name:"menu2",
    key: '/menu2',
    icon: 'printer',
    subMenu: [
      {
        key: '/menu2/menu2-1',
        name: "2-1",
        icon: 'printer',
        subMenu: [
          {
            key: '/menu2/menu2-1-1',
            name: "2-1-1",
            icon: 'printer',
          },{
              key: '/menu1/menu1-1-2',
              name: "2-1-2",
              icon: 'printer',
          }
      ]}

  ]}


];

export function addMenu(...menu) {
  menuList.push(...menu);
}

export function getMenuList() {
  //console.log("Hoder里面哦"+menuList);
  return menuList;
}
